var ans = prompt("Are you sure?");
if (ans){
	alert("You said "+ ans);
}
else{
	alert("You said no");
}